package com.qf.exception;

/**
 * 自定义异常类
 * @author zhaojian
 */
public class CustomerException extends RuntimeException {

    //手动抛出的异常消息
    private String msg;

    //错误编码
    private String errorCode;

    public CustomerException() {
    }

    public CustomerException(String msg, String errorCode) {
        this.msg = msg;
        this.errorCode = errorCode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

}
